class Question < ActiveRecord::Base
  belongs_to :admin
  validates_presence_of :sujet
  validates_length_of :sujet, :in => 1..100
  validates_presence_of :dateAffichage
  validates_uniqueness_of :dateAffichage
end
